<%@ page import = "ro.xblue.translator.LanguageBean,
                   ro.xblue.translator.TranslatorUtils,
                   ro.gateway.aida.utils.HttpUtils
			    ,
			    ro.gateway.aida.obj.db.ActivityDB,
			    ro.gateway.aida.db.PersistenceManager" %>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>
<%@ taglib uri="/WEB-INF/taglib.tld" prefix="gtw" %>
<%@ taglib uri="/WEB-INF/usr.tld" prefix="usr" %>



<%
if (!ActivityDB.getManager(PersistenceManager
	  .tokenLookup(application)).activityExists(HttpUtils.getLong(request, "id", -1))) {
	String url = request.getContextPath() + "/frw.do?fw=notfound";
	System.out.println("Activity not found (from mailview.jsp). Redirecting to:" + request.getContextPath() + "/frw.do?fw=notfound");
	response.sendRedirect(url);
	return;
}
String fctx = request.getServerName();
String ctx = request.getContextPath();
LanguageBean lang_bean = TranslatorUtils.getCurrentLanguage(request, application);
String lang=lang_bean.language;
String idproj=HttpUtils.getValidTrimedString(request,"id",null);
String comment=request.getParameter("comment");
String adr=request.getRequestURL().toString().replaceAll("mailview.jsp","view.jsp");
%>



<html>
<head>
<style>
A:hover {

	TEXT-DECORATION: underline

}

.text_search { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 

8pt; font-style: normal} 
.text_search1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; font-style: normal; text-decoration: none; color: #000000}

.text { font-family: Verdana, 
Arial, Helvetica, sans-serif; font-size: 9pt; font-style: normal; font-weight: 

normal; text-decoration: none} 

.titlu { font-family: Verdana, Arial, Helvetica, 

sans-serif; font-size: 11pt; font-style: normal; font-weight: bold; text-decoration: 

none} 

.text_bold { font-family: Verdana, 

Arial, Helvetica, sans-serif; font-size: 9pt; font-style: normal; font-weight: 

bold; text-decoration: none}

.text_searchbold { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; font-style: normal ; font-weight: bold; text-decoration: none; color: #333333;}

select {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; text-decoration: none; background-color: #FFFFFF; border: ridge; border-color: #999999 #999999 e0e0e0 e0e0e0; border-width: 1pt 1pt 1px 1px}

textarea {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #333333; text-decoration: none; background-color: #FFFFFF; border: #999999; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}

.buton {  font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; color: #000000; text-decoration: none; background-color: #ECF3FD; border-color: #FFFFFF #003399 #003399 #FFFFFF; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}

.textalb { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; font-style: normal ; font-weight: bold ; color: #FFFFFF; text-decoration: none}

.textalbhelp { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; font-style: normal ; font-weight: normal ; color: #FFFFFF; text-decoration: none}

.butonsave { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; color: #FFFFFF; text-decoration: none; background-color: #0099CC; border-color: #99CCFF #000033 #000033 #99CCFF; padding-top: 2px; padding-right: 2px; padding-bottom: 2px; padding-left: 2px; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}

.butonpublish { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #FFFFFF; text-decoration: none; background-color: #990033; border-color: #FF6666 #660000 #660000 #FF6666; padding-top: 2px; padding-right: 3px; padding-bottom: 2px; padding-left: 3px ; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}

.lngtdblack { font-family: Verdana, 

Arial, Helvetica, sans-serif; font-size: 8pt; color: #000000; font-style: normal; font-weight: 

bold; text-decoration: none}

.lngtdwhite { font-family: Verdana, 

Arial, Helvetica, sans-serif; font-size: 8pt; color: #FFFFFF; font-style: normal; font-weight: 

bold; text-decoration: none}

.lngsel { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color: #FFFFFF; font-style: normal;

normal; text-decoration: none}

.inputt {BACKGROUND-COLOR: #ffffff; BORDER-BOTTOM: #cacaca 1px solid; BORDER-LEFT: #cacaca 1px solid; BORDER-RIGHT: #cacaca 1px solid; BORDER-TOP: #cacaca 1px solid; FONT: 11px Verdana, Arial, san-serif}

.header-nav {

	font-size: 10px;

	color: #FFFFFF;

	font-family: Verdana, Arial, Helvetica, sans-serif;

	text-decoration: none;

	font-weight: bold;

}
</style>
    <title>Project View</title>
<link rel="stylesheet" href="<html:rewrite page='/alf.css'/>" type="text/css">
<LINK href="<html:rewrite page="/header-footer.css"/>" rel=stylesheet type=text/css>
</head>
<trans:initPage module="headerfooter" />
<body>
<p>
<div align="center" class="text_bold">&nbsp;&nbsp;&nbsp;&nbsp;<trans:showPageMessage label="headerfooter.lpd" />&nbsp;&nbsp; </div><p align=center>

<table width="90%" align="center" bgcolor="#336699" cellpadding="4" cellspacing="1" class=text_bold border="0">
<tr><td bgcolor=ffffff>
<%if (comment==null) {%>
 <trans:initPage module="headerfooter" />
<trans:showPageMessage label="headerfooter.textmail1" /><!--Hi, I found this project on Local Projects Database and I think it might be useful for you.-->
<%} else {%>
<trans:initPage module="login" /><trans:showPageMessage label="login.yourcomment" />:<%=comment%>
<%}%></table>
<blockquote>
<div align="left" class="text_search">
<trans:initPage module="headerfooter" />
<trans:showPageMessage label="headerfooter.textmail2" />
<!--You can find the latest version of this project at the link below:-->
<a href="<%=adr%>?id=<%=idproj%>" ><%=adr%>?id=<%=idproj%></a></div></blockquote>
<jsp:include page="mail_project_viewer.jsp">
	<jsp:param name="id" value="<%=idproj%>" />
</jsp:include>  
</body>
</html>